package designPattern.builder;

/**
 * Created by cdxuhongya on 2017/1/6.
 */
public class ManBuilder implements Builder{

    Person person;

    public ManBuilder(){
        person = new Man();
    }

    public void buildHead() {
        person.setHead("man head");
    }

    public void buildBody() {
        person.setBody("man Body");
    }

    public void buildFeet() {
        person.setFeet("man feet");
    }

    public Person buildPerson() {
        return person;
    }
}
